import { default as request, cloud } from '@/framework/utils/request'

// 查询监控告警用户列表
export function listMonitorAlarmUser(query) {
  return request({
    url: cloud.interfacePlatform + '/interfaceMonitorAlarmUser/page',
    method: 'get',
    params: query
  })
}

// 查询监控告警用户详细
export function getMonitorAlarmUser(id) {
  return request({
    url: cloud.interfacePlatform + '/interfaceMonitorAlarmUser/detail?id=' + id,
    method: 'get'
  })
}

// 新增监控告警用户
export function addMonitorAlarmUser(data) {
  return request({
    url: cloud.interfacePlatform + '/interfaceMonitorAlarmUser/add',
    method: 'post',
    data: data
  })
}

// 修改监控告警用户
export function updateMonitorAlarmUser(data) {
  return request({
    url: cloud.interfacePlatform + '/interfaceMonitorAlarmUser/edit',
    method: 'post',
    data: data
  })
}

// 删除监控告警用户
export function delMonitorAlarmUser(id) {
  return request({
    url: cloud.interfacePlatform + '/interfaceMonitorAlarmUser/delete',
    method: 'post',
    data: { ids: id }
  })
}
